<template>
  <div>
    <el-row>
      <el-input
        class="search-bar"
        v-model="key"
      >
        <template #append>
          <el-button
            color="#3271ae"
            style="width: 50px;
              background-color: #3271ae;
              border-radius: 0 5px 5px 0;
              color: #fff"
            @click="handleSearch()"
          >
            <el-icon>
              <Search />
            </el-icon>
          </el-button>
        </template>
      </el-input>
      <n-shopping-cart-button></n-shopping-cart-button>
    </el-row>
    <el-col
      :span="3"
      v-for="(item, index) in history"
      :key="index"
      class="history"
    >
      {{ item }}
    </el-col>
  </div>
</template>

<script>
import NSearchInput from "../NSearchInput.vue";

export default {
  extends: NSearchInput,
};
</script>

<style scoped>
.search-bar {
  width: 600px;
}

.history {
  color: #b4b4b4;
  margin: 2px 0;
  font-size: 10px;
}
</style>